﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jh_dingejs_school.aspx.cs" Inherits="Web.Pages.YongShui._18.weihu.jh_dingejs_school" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>定额计算</title>
    <style>
        #mx tr th {border:2px solid Gray ;}
        #mx tr td {border:2px solid Gray ;}
        #mx tr td table {border:0px;}
        #mx tr td table tr td {border:1px solid Gray ;}
        #kval tr th {border:1px solid Gray;}
        #kval tr td {border:1px solid Gray; text-align: center}
        #hj tr th {border:1px solid Gray;}
        #hj tr td {border:1px solid Gray; text-align: center}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%;">
            <tr>
                <td width="80px">单位名称：</td>
                <td>
                    <dx:ASPxTextBox ID="txtUserName" runat="server" Width="320px" BackColor="LightYellow" ReadOnly="True"></dx:ASPxTextBox>
                </td>
                <td width="66px">用户号：</td>
                <td>
                    <dx:ASPxTextBox ID="txtUserID" runat="server" Width="100px" BackColor="LightYellow" ReadOnly="True"></dx:ASPxTextBox>
                    <asp:HiddenField ID="hfSSDX" runat="server" />
                </td>
                <td width="116px">日常抄表日期：</td>
                <td>
                    <dx:ASPxTextBox ID="txtCBRQ" runat="server" Width="60px"></dx:ASPxTextBox>
                </td>
            </tr>
        </table>   
    </div>
    <div height="5px">&nbsp;</div>
    <div>     
        <table id="mx" cellpadding="0" cellspacing="0" style="width: 100%; border: 1px solid;">
            <tr height="50px">
                <th>编号</th>
                <th>用水名称</th>
                <th>定额单位</th>
                <th>参考定额值</th>
                <th colspan="2">月用水基准量(m<sup>3</sup>)</th>
            </tr>
            <asp:Repeater ID="rptDEJS" runat="server" OnItemDataBound="rptDEJS_ItemDataBound">
            <ItemTemplate>
                <tr>
                    <td style="text-align:center"><%#Eval("I_ID") %></td>
                    <td style="text-align:center"><%#Eval("S_NAME") %></td>
                    <td style="text-align:center"><%#Eval("S_UNIT") %></td>
                    <td>
                        <dx:ASPxRadioButtonList ID="rbtSelLs" runat="server" TextField="S_CANKAO" ValueField="I_TYPE_ID" ItemSpacing="0px" RepeatLayout="Flow" Width="100%" Height="100%" ValueType="System.Int32" ClientInstanceName="rbtSelLs">
                            <Paddings Padding="0px" />
                            <Border BorderWidth="0px" />
                        </dx:ASPxRadioButtonList>
                    </td>
                    <td>
                        <asp:HiddenField ID="hf_I_SORT" runat="server" Value='<%#Eval("I_SORT") %>' />
                        <asp:Repeater ID="rptDEJSMX" runat="server">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; border: 0px;">
                                <tr>
                                    <asp:HiddenField ID="hf_I_TYPE_ID" runat="server" Value='<%#Eval("I_TYPE_ID") %>' />
                                    <td><%#Eval("S_JIZHUNL") %></td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        </asp:Repeater>
                    </td>
                    <td>
                        <div style="float:left;">
                            <%#Eval("S_VAL1") %>
                            <dx:ASPxTextBox ID="txtVal1" runat="server" Width="60px" Text='<%#Eval("n_val1") %>'>
                            </dx:ASPxTextBox>
                        </div>
                        <div width="10px" style="float: left;">&nbsp;</div>
                        <div style="float: left;">
                            <%#Eval("S_VAL2") %>
                            <dx:ASPxTextBox ID="txtVal2" runat="server" Width="60px" Text='<%#Eval("n_val2") %>'>
                            </dx:ASPxTextBox>
                        </div>
                        <div width="10px" style="float: left;">&nbsp;</div>
                        <div style="float:right;">
                            <div>结果</div>
                            <dx:ASPxTextBox ID="txtValResult" runat="server" Width="60px" Text='<%#Eval("N_VAL_ALL") %>' BackColor="LightYellow" ReadOnly="True">
                            </dx:ASPxTextBox>
                        </div>
                    </td>
                </tr>
            </ItemTemplate>
            </asp:Repeater>
        </table>   
    </div>
    <div height="5px">&nbsp;</div>
    <div>     
        <table id="hj" cellpadding="0" cellspacing="0" style="width: 100%; border: 1px solid;">
            <tr>
                <th>合计(V)(m<sup>3</sup>)</th>
                <td>V<sub>1</sub>(夏季)</td>
                <td>
                    <dx:ASPxTextBox ID="txtV1" runat="server" Width="120px" BackColor="LightYellow" ReadOnly="True"></dx:ASPxTextBox>
                </td>
                <td>V<sub>2</sub>(非夏季)</td>
                <td>
                    <dx:ASPxTextBox ID="txtV2" runat="server" Width="120px" BackColor="LightYellow" ReadOnly="True"></dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <th>调整系数(K)</sup>)</th>
                <td>K<sub>1</sub>(夏季)</td>
                <td>
                    <dx:ASPxTextBox ID="txtKA1" runat="server" Width="120px" BackColor="LightYellow" ReadOnly="True"></dx:ASPxTextBox>
                </td>
                <td>K<sub>2</sub>(非夏季)</td>
                <td>
                    <dx:ASPxTextBox ID="txtKA2" runat="server" Width="120px" BackColor="LightYellow" ReadOnly="True"></dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <th>用水总量(L)(m<sup>3</sup>)</th>
                <td>L<sub>1</sub>(夏季)</td>
                <td>
                    <dx:ASPxTextBox ID="txtL1" runat="server" Width="120px" BackColor="LightYellow" ReadOnly="True"></dx:ASPxTextBox>
                </td>
                <td>L<sub>2</sub>(非夏季)</td>
                <td>
                    <dx:ASPxTextBox ID="txtL2" runat="server" Width="120px" BackColor="LightYellow" ReadOnly="True"></dx:ASPxTextBox>
                </td>
            </tr>
        </table>   
    </div>
    <div height="5px">&nbsp;</div>
    <div>     
        <table id="kval" cellpadding="0" cellspacing="0" style="width: 100%; border: 1px solid;">
            <tr>
                <th>调整条件</th>
                <th>夏季<br>（6-9月）</th>
                <th>节水型</th>
                <th>未按规定<br>完成水平衡测试</th>
                <th>尚有<br>非节水型器具</th>
                <th>是否完成<br>月报表</th>
                <th>无用水管理<br>制度</th>
            </tr>
            <tr>
                <th>k<sub>i</sub></th>
                <td>k<sub>1</sub></td>
                <td>k<sub>2</sub></td>
                <td>k<sub>3</sub></td>
                <td>k<sub>4</sub></td>
                <td>k<sub>5</sub></td>
                <td>k<sub>6</sub></td>
            </tr>
            <tr>
                <th>调整幅度</th>
                <td>
                    <dx:ASPxTextBox ID="txtK1" runat="server" Width="70px" Visible="False"></dx:ASPxTextBox>
                    +0.10
                </td>                                                       
                <td>                                                        
                    <dx:ASPxTextBox ID="txtK2" runat="server" Width="70px" Visible="False"></dx:ASPxTextBox>
                    +0.05
                </td>                                                       
                <td>                                                        
                    <dx:ASPxTextBox ID="txtK3" runat="server" Width="70px" Visible="False"></dx:ASPxTextBox>
                    -0.06
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtK4" runat="server" Width="70px" Visible="False"></dx:ASPxTextBox>
                    -0.03
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtK5" runat="server" Width="70px" Visible="False"></dx:ASPxTextBox>
                    ±0.03
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtK6" runat="server" Width="70px" Visible="False"></dx:ASPxTextBox>
                    -0.03
                </td>
            </tr>
            <tr>
                <th>实际值</th>
                <td>
                    <dx:ASPxTextBox ID="txtKR1" runat="server" Width="70px"></dx:ASPxTextBox>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtKR2" runat="server" Width="70px"></dx:ASPxTextBox>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtKR3" runat="server" Width="70px"></dx:ASPxTextBox>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtKR4" runat="server" Width="70px"></dx:ASPxTextBox>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtKR5" runat="server" Width="70px"></dx:ASPxTextBox>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtKR6" runat="server" Width="70px"></dx:ASPxTextBox>
                </td>
            </tr>
        </table>   
    </div>
    <div height="5px">&nbsp;</div>
    <div>
        <div style="float: right">
            <dx:ASPxButton ID="btnOp" runat="server" Text="保存并计算" OnClick="btnOp_Click"></dx:ASPxButton>
        </div>
    </div>
    <div height="20px">&nbsp;</div>
    </form>
</body>
</html>
